import { ChangeDetectionStrategy, Component } from '@angular/core';

@Component({
  selector: 'app-demo6',
  templateUrl: './demo6.component.html',
  styles: [``],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class Demo6Component {
  value = [new Date('2020-01-13'), new Date('2020-01-15')];
  range = [new Date('2020-01-10'), new Date('2020-01-22')];

  onChange(event) {
    this.value = event;
    console.log('变化后的值是', event)
  };
}
